<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WoNiuShop</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/basic.css" />
<link rel="stylesheet" type="text/css" href="css/address.css" />
</head>
<body>
	<%@include file="loginandregister.jspf"%>
	<div id="address-main">
		<h1 class="title">已有邮寄地址</h1>
		<div id="address">
			<div class="a-list">
				<c:forEach var="address" items="${addressList}">
					<div class="a-item">
						<div class="i-info">
							<span class="i-s-title">姓名: </span><span class="i-s-name">${address.uName}</span>
							<span class="i-s-title">电话: </span><span class="i-s-phone">${address.phoneNum }</span>
							<span class="i-s-title">邮寄编码: </span><span class="i-s-number">610620</span>
						</div>
						<div class="i-address ">${address.address}</div>
						<div class="i-delete">
							<img src="icon/关闭.png">
						</div>
					</div>
				</c:forEach>
			</div>
		</div>
		<h1 class="title">添加邮寄地址</h1>
		<div id="add-address">
			<form action="AddUserAddressServlet" method="post">
				<div class="add-form-group">
					<label for="name">姓名:</label> <input type="text" name="uname"
						id="name" />
				</div>
				<div class="add-form-group ">
					<label for="phone">手机:</label> <input type="number" name="phoneNum"
						id="phone" />
				</div>
				<div class="add-form-group inline-block">
					<label for="province">省份:</label> <select id="province"
						name="province">
						<option value="四川" selected="selected">四川</option>
					</select>
				</div>
				<div class="add-form-group inline-block">
					<label for="city">城市:</label> <select id="city" name="city">
						<option value="成都" selected="selected">成都</option>
					</select>
				</div>
				<div class="add-form-group inline-block">
					<label for="county">区县:</label> <select id="county" name="county">
						<option value="高新区" selected="selected">高新区</option>
					</select>
				</div>
				<div class="add-form-group inline-block">
					<label for="street">街道:</label> <select id="street" name="street">
						<option value="孵化园" selected="selected">孵化园</option>
					</select>
				</div>
				<div class="add-form-group address-detail">
					<label for="name">详细地址:</label>
					<textarea id="detail" name="detail"></textarea>
				</div>
				<div class="add-form-group add-button ">
					<input type="submit" class="btn btn-info" value="添加地址" />
				</div>
			</form>
		</div>
	</div>
	<!-- 尾部区域 -->
	<div id="footer">蜗牛创想科技-woniushop&copy; 版权所有</div>
	<script src="js/jquery.min.js"></script>
	<script src="js/basic.js"></script>
</body>
</html>